// src/pages/NotFound.jsx
import { Button } from 'antd';
import { useNavigate } from 'react-router-dom';

export default function NotFound() {
  const navigate = useNavigate();

  return (
    <div
      style={{
        height: '100vh',
        display: 'flex',
        flexDirection: 'column',
        justifyContent: 'center',
        alignItems: 'center',
      }}
    >
      <h1>404 - 页面未找到</h1>
      <p>您访问的页面不存在或已被删除</p>
      <Button type="primary" onClick={() => navigate('/')}>
        返回登录页
      </Button>
    </div>
  );
}
